package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * APP用户信息表
 * </p>
 *
 * @author nan
 * @since 2024-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ap_user")
@ApiModel(value="ApUser对象", description="APP用户信息表")
public class ApUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "密码、通信等加密盐")
    private String salt;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "密码,md5加密")
    private String password;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "头像")
    private String image;

    @ApiModelProperty(value = "0 男 1 女 2 未知")
    private Short sex;

    @ApiModelProperty(value = "0 未 1 是")
    private Short isCertification;

    @ApiModelProperty(value = "是否身份认证")
    private Short isIdentityAuthentication;

    @ApiModelProperty(value = "0正常 1锁定")
    private Short status;

    @ApiModelProperty(value = "0 普通用户 1 自媒体人 2 大V")
    private Short flag;

    @ApiModelProperty(value = "注册时间")
    private LocalDateTime createdTime;


}
